doctype html
html(ng-app='module')
    head
        title #{title}
        link(rel='stylesheet' href='/css/bootstrap.min.css')
        link(rel='stylesheet' href='/css/ace.min.css')
        link(rel='stylesheet' href='/css/admin.css')
        script(src='/js/lib/jquery.min.js')
        script(src='/js/lib/bootstrap.min.js')
        script(src='/js/lib/angular.min.js')
        script(src='/js/lib/d3.js')
        script(src='/js/admin.js')
        block javascript
    body(style="background-color:#efefda")
        include header
        #navbar.navbar.navbar-default
            #navbar-container.navbar-container
                .navbar-header.pull-left
                    a(href='/admin').navbar-brand
                        small: i.icon-leaf
                            | 秀厨网后台管理
                div(role='navigation').navbar-header.pull-right
                    ul.nav.ace-nav
                        li.light-blue
                            a(data-toggle='dropdown' href='#').dropdown-toggle
                                span.user-info: small 欢迎光临
                                    | #{admin.nick}
                                i.icon-caret-down
        #main-container.main-container
            .main-container-inner
                a(href='#')#menu-toggler.menu-toggler
                    span.menu-text what the fuck!
                #sidebar.sidebar
                    #sidebar-shortcuts.sidebar-shortcuts
                        #sidebar-shortcuts-mini.sidebar-shortcuts-mini
                            span.btn.btn-success
                            span.btn.btn-info
                            span.btn.btn-warning
                            span.btn.btn-danger
                    mixin active(name, _path, clazz)
                        if(_path == path)
                            li.active: a(href='#{_path}')
                                    i(class='#{clazz}')
                                    span.menu-text #{name}
                        else
                            li: a(href='#{_path}')
                                    i(class='#{clazz}')
                                    span.menu-text #{name}
                    ul.mav.nav-list
                       + active('用户管理', '/admin/user', 'glyphicon glyphicon-user')
                       + active('菜单管理',  '/admin/menu', 'glyphicon glyphicon-list-alt')
                       + active('菜谱管理',  '/admin/recipe', 'glyphicon glyphicon-cutlery')
                       //+ active('字典管理', '/admin/dictionary', 'glyphicon glyphicon-book')
                       //li: ul.mav.nav-list
                       //         + active('菜谱分类', '/admin/recipe/ctg', 'glyphicon glyphicon-pencil')
                       //         + active('烹饪级别', '/admin/recipe/level', 'glyphicon glyphicon-pencil')
                       //         + active('烹饪难度', '/admin/recipe/diff', 'glyphicon glyphicon-pencil')
                       //         + active('烹饪耗时', '/admin/recipe/spend', 'glyphicon glyphicon-pencil')
                       //         + active('菜谱口味', '/admin/recipe/flavour', 'glyphicon glyphicon-pencil')
                       //         + active('菜谱工艺', '/admin/recipe/craftwork', 'glyphicon glyphicon-pencil')
                       + active('统计分析', '/admin/statistics', 'glyphicon glyphicon-barcode')
                .main-content
                    #breadcrumbs.breadcrumbs
                        ul.breadcrumb
                            li: i.icon-home.home-icon
                                a(href='/admin') 首页
                            li.active #{title}
                    block page-content































